<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>打印</title>
</head>
<style>
    @page {
        padding: 0;
        margin: 0;
    }

    * {
        padding: 0;
        margin: 0;
    }

    .task-ticket-template {
        width: 80%;
        margin: 0 auto;
        padding: 2em;
    }

    .task-ticket-table {
        border-collapse: collapse;
        width: 100%;
    }

    .task-ticket-table tr {
        page-break-before: auto;
    }

    .task-ticket-table td {
        border: 1px solid #000;
    }
</style>

<body>
    <div id="printContent">
        hello,world
    </div>
</body>
<script src="./print.js"></script>

</html>